﻿using YKXiangQi.Models;

namespace YKXiangQi.ViewModels
{
    public class LanguageViewModel: ViewModelBase
    {
        private bool _isChecked ;
        public bool IsChecked
        {
            get { return _isChecked; }
            set
            {
                _isChecked = value;
                RaisePropertyChanged(() => this.IsChecked);
            }
        }

        private Language Language { get; set; }

        public LanguageViewModel(Language language)
        {
            Language = language;
        }

        public string Name
        {
            get { return Language.Name; }
        }

        public string CultureCode
        {
            get { return Language.CultureCode; }
        }
    }
}